package com.run.merchant.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.run.merchant.mapper.WdInfoMapper;
import com.run.merchant.domain.WdInfo;
import com.run.merchant.service.IWdInfoService;

/**
 * 代取员提现申请Service业务层处理
 * 
 * @author run
 * @date 2025-05-12
 */
@Service
public class WdInfoServiceImpl implements IWdInfoService 
{
    @Autowired
    private WdInfoMapper wdInfoMapper;

    /**
     * 查询代取员提现申请
     * 
     * @param wdId 代取员提现申请主键
     * @return 代取员提现申请
     */
    @Override
    public WdInfo selectWdInfoByWdId(Long wdId)
    {
        return wdInfoMapper.selectWdInfoByWdId(wdId);
    }

    /**
     * 查询代取员提现申请列表
     * 
     * @param wdInfo 代取员提现申请
     * @return 代取员提现申请
     */
    @Override
    public List<WdInfo> selectWdInfoList(WdInfo wdInfo)
    {
        return wdInfoMapper.selectWdInfoList(wdInfo);
    }

    /**
     * 新增代取员提现申请
     * 
     * @param wdInfo 代取员提现申请
     * @return 结果
     */
    @Override
    public int insertWdInfo(WdInfo wdInfo)
    {
        return wdInfoMapper.insertWdInfo(wdInfo);
    }

    /**
     * 修改代取员提现申请
     * 
     * @param wdInfo 代取员提现申请
     * @return 结果
     */
    @Override
    public int updateWdInfo(WdInfo wdInfo)
    {
        return wdInfoMapper.updateWdInfo(wdInfo);
    }

    /**
     * 批量删除代取员提现申请
     * 
     * @param wdIds 需要删除的代取员提现申请主键
     * @return 结果
     */
    @Override
    public int deleteWdInfoByWdIds(Long[] wdIds)
    {
        return wdInfoMapper.deleteWdInfoByWdIds(wdIds);
    }

    /**
     * 删除代取员提现申请信息
     * 
     * @param wdId 代取员提现申请主键
     * @return 结果
     */
    @Override
    public int deleteWdInfoByWdId(Long wdId)
    {
        return wdInfoMapper.deleteWdInfoByWdId(wdId);
    }
}
